<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台点击列表</title>
<?php require_once(APP.'libs'.DS.'system_properties.php');?>
<link href="<?php echo SystemProperties::$app_host_webroot;?>/css/main.css" rel="stylesheet" type="text/css" />
<link href="<?php echo SystemProperties::$app_host_webroot;?>/css/demo.css" rel="stylesheet" type="text/css" />
<?php echo header("Cache-Control:   no-cache");?>
</head>

<body>

<div style="padding:40px">
<strong><span style="color:blue"><?=SystemProperties::$platform?>平台</span> <?=$product_data[0]['g_products']['g_name']?></strong> 详细点击记录 - <span style="color:#039;font-size:15px"><strong>共&nbsp;&nbsp;<?=$total?>&nbsp;&nbsp;次</strong></span> <a href="/tryapp/TryAppManagement/index.php/product/showClickLogs/<?=$product_data[0]['g_products']['g_id']?>/0/1">导出Excel(此处点右键另存为)</a><br /><br /><br />
<img width="160" src="<?=SystemProperties::$path.$product_data[0]['g_products']['g_img']?>" />
</div>

<table border="0" align="center" cellpadding="0" cellspacing="1" class="list">
  <tr>
    <td  align="center" width="60px">用户图片</td>
    <td  align="center">用户信息页面</td>
    <td  align="center">点击时间</td>
	<td  align="center">性别</td>
	
	<td  align="center">年龄</td>
    <td  align="center">地区</td>
    <td  align="center">附加信息</td>
	
  </tr>
  
  <?php foreach ($data as $da) { ?>
  <tr>
    <td  align="center"><img width="50" src="<?=$da['g_users']['g_head']?>" /></td>
    <td  align="center"><a href="<?=SystemProperties::get_profile_url($da['g_users']['g_uid'])?>" target="_blank" style="color:#039"><?=$da['g_users']['g_name']?></a>&nbsp;&nbsp;<?=empty($da['g_users']['g_realname'])?'':"({$da['g_users']['g_realname']})"?></td>
    <td  align="center"><?=$da['g_clicklogs']['time']?></td>
	<td  align="center"><?=empty($da['g_users']['g_realname'])?'':($da['g_users']['g_sex']==0?'女':'男')?></td>
	
	<td  align="center"><?=empty($da['g_users']['g_realname'])?'':(date('Y')-date('Y',strtotime($da['g_users']['g_birthday']))+1)?></td>
    <td  align="center"><?=$da['g_users']['g_province'].$da['g_users']['g_city']?></td>
    <?php 
    if (!empty( $da['g_clicklogs']['extra'])){
    	$list = explode('|',$da['g_clicklogs']['extra']);
    	foreach ($list as $list_c){
			$list_c = urldecode(urldecode($list_c));
    		//$list_c=str_replace('=',':<br />',$list_c);
    		$list_c=str_replace('&','<br />',$list_c);
    		echo "<td>{$list_c}</td>";
    	}
    	//echo join('<br />',$list);
    }
    ?>
    <td  align="left">
    <?php echo '<br />'.$da['g_clicklogs']['g_luck_word'];
    ?></td>
  </tr>
  
  
  <?php } ?>
  
  
  </table>
  <?=$pager ?>
  
  </body>
  </html>
